package com.boot.es.lang;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 返回枚举类
 * @date 2020/10/23 14:20
 */
@Getter
@AllArgsConstructor
public enum Renum {

    UN_ERROR(-1,"未知错误"),
    SUCCESS(200,"操作成功"),
    USER_NOT_EXIST(1,"用户已存在"),
    USER_IS_EXIST(2,"用户不存在"),
    DATA_IS_NULL(3,"数据为空"),
    DATA_NOT_NULL(4,"数据不能为空");

    private Integer code;

    private String msg;
}
